package com.cyy.common.enums;

import lombok.Getter;

@Getter
public enum ErrorCode {

    SUCCESS("00000", "success"),
    CLIENT_ERROR("A0000","客户端错误"),
    SYSTEM_ERROR("B0000", "系统内部异常");

    /**
     * 状态码
     */
    private final String code;

    /**
     * 信息
     */
    private final String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

}